revealer: Use floor(), not ceil()
authorBenjamin Otte <otte@redhat.com>
Wed, 9 Sep 2020 13:56:10 +0000 (15:56 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 9 Sep 2020 15:38:37 +0000 (17:38 +0200)
commitcc58956dbbe7ba6bb1c1b338678e7708e9b90df8
tree40e929d0beda4a499aec1e8407ad137969db8c45
parent0ad10ccf3993c66a05a3dc623e8bb86b0390a047
revealer: Use floor(), not ceil()

We use ceil() in measure(), so using it again will increase the
child's size whenever there is even a tiny rounding error.

This should also not make the size too small, because:
min = ceil(child_min * scale)
min / scale >= child_min
floor (min / scale) >= floor (child_min) = child_min
The last equality is because child_min is an integer.

Fixes #3137
gtk/gtkrevealer.c